home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pesquisa Dirigida
/
Pesquisa Dirigida.iso
/
JOGOS
/
frogger.swf
/
scripts
/
DefineSprite_147
/
frame_10
/
DoAction.as
Wrap
Text File
|
2005-01-07
|
365b
|
11 lines
obj1_x = getProperty("/frosch", _X);
obj2_x = getProperty("/schild9", _X);
delta_x = obj1_x - obj2_x;
obj1_y = getProperty("/frosch", _Y);
obj2_y = getProperty("/schild9", _Y);
delta_y = obj1_y - obj2_y;
if((radius1 + radius2) * (radius1 + radius2) >= delta_x * delta_x + delta_y * delta_y)
{
setProperty("/frosch", _X, getProperty("/schild9", _X));
}